/**
 ******************************************************************************
 * @file    main.c
 * @author  fire
 * @version V1.0
 * @date    2024-xx-xx
 * @brief   继电器应用接口函数
 ******************************************************************************
 * @attention
 *
 * 实验平台:野火  STM32 F429 开发板
 * 论坛    :http://www.firebbs.cn
 * 淘宝    :https://fire-stm32.taobao.com
 *
 ******************************************************************************
 */
#include "relay/relay.h"

void Relay_GPIO_Init(void)
{
	  
    /* 使能GPIO时钟 */
    RELAY_IN1_GPIO_CLK_ENABLE();

    /* 初始化GPIO */
	  GPIO_InitTypeDef gpio_initstruct;
    gpio_initstruct.Mode = GPIO_MODE_OUTPUT_PP;
    gpio_initstruct.Pin = RELAY_IN1_GPIO_PIN;
    gpio_initstruct.Pull = GPIO_PULLUP;
    gpio_initstruct.Speed = GPIO_SPEED_FREQ_HIGH;

    HAL_GPIO_Init(RELAY_IN1_GPIO_PORT,&gpio_initstruct);
}

